import { service as request} from '@/utils/request'

export function getList(data){
    return request({
        url:`/system/role/menu/page/${JSON.stringify(data)}`,
        method:"get"
    })
}

export function doAdd(data) {
    return request({
        url: '/system/role/menu',
        method: 'post',
        data
    })
}
export function doEdit(data) {
    return request({
        url: '/system/role/menu',
        method: 'put',
        data
    })
}
export function doDelete(id) {
    return request({
        url: `/system/role/menu/${id}`,
        method: 'delete'
    })
}
export function getOne(id) {
    return request({
        url: `/hawk/system/role/menu/${id}`,
        method: 'get'
    })
}